//
//  HRDunamicLayout.h
//  Hear
//
//  Created by mac on 2017/4/9.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HRDynamicModel.h"

#define contentTextColor TEXTCOLOR
#define contentTextFont CustomUIFont(14)


/// 风格
typedef NS_ENUM(NSUInteger, HRLayoutStyle) {
    HRLayoutStyleTimeline = 0, ///< 时间线 (目前只支持这一种)
    HRLayoutStyleDetail,       ///< 详情页
};
@interface HRDunamicLayout : NSObject
- (instancetype)initWithStatus:(HRDynamicModel *)dynamicModel style:(HRLayoutStyle)style;
- (void)layout; ///< 计算布局

@property (nonatomic, strong) HRDynamicModel *dynamicModel;
@property (nonatomic, assign) HRLayoutStyle style;

@property (nonatomic, assign) CGRect contentViewRect;
@property (nonatomic, assign)CGRect dynamicPhotoViewFrame;
@property (nonatomic, assign)CGRect soundAndImageViewFrame;

@property (nonatomic, assign)CGRect timeViewRect;
@property (nonatomic, assign)CGRect bottomViewRect;


@property (nonatomic, assign)CGRect contentRect;

@property (nonatomic, assign)CGRect lockImageViewRect;
@property (nonatomic, assign) CGRect iconImageViewRect;






@property (nonatomic, assign) CGRect lineRect;

@property (nonatomic, assign) CGRect circleRect;

@property (nonatomic, assign) CGRect backImageViewRect;
@property (nonatomic, assign) CGRect soundButtonRect;
@property (nonatomic, assign) CGRect toolViewRect;
@property (nonatomic, assign) CGRect videoPlayViewRect;
@property (nonatomic, assign) CGRect timeRect;



@property (nonatomic, assign) CGFloat cellHeight;

@end
